import * as path from "path";
import { consts } from "../pkg-00-const";
import { copyFilesByFolder, searchFolder, searchFolderUp } from "./tool/scanutil";
export const scanner = {
  scan() {
    const rootFolder = path.resolve(searchFolderUp("src"), "..");
    const coverFolders = searchFolder(consts.coverRootCaseFolderName);
    coverFolders.forEach(folder => copyFilesByFolder(folder, rootFolder, true));
  }
};
